package com.briup.estore.common.conf;

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;

public class AliPayConfig {
    /*
     * 服务网关  ---  沙箱环境
     */

    private static String serverURL = "https://openapi.alipaydev.com/gateway.do";

    /*
     * 应用id,
     */

    private static String APP_ID = "2016101600701331";

    /*
     * 用户私钥,可以替换成你们的自己的私钥
     *
     */

    private static String APP_PRIVATE_KEY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCmQ325f7PKAd4PhFB5bf+6/JhEMgS0NRDLvSHQO38TgFf2v1aQKmw+hSmhNJR2ECgAQgkdXAlN2EkUVhV3YEDWokuyHC4eM5C4Q4S9KON1yxMtaNxDWPDT/gm0L3eWt42HGhy+8MghsC8E5KLb7cpTB56lyAnhCgnqatu61E/v4gwGNJ2HSlqrEluAZI/F0vbC/EZqdf8v9ReODVYTeZ2mE+ECSwfmD+i/FhNJJARt5A5kYnuPfO+62NMQ9SWpkzwI2QDV/iw0UWi8frNWSd4xpukm8A0Xmu4yll7ckQrBfqYQoOEgRElTE54xcneXLmFgfVQDex4TY7PW2DQuYNobAgMBAAECggEAbO+zpKLjbewjTw9mmulTsXRnX+dV5a0PQC6/xOv2qxRgji93zCW/nocpa5JD48daLjEWP8JZ5kNcPpLYpcrPMNJNvnlwTiGDJPg4NKhhwIA6JHqcNxRDVuMQAJtJQ9soQ+j8BK9Gsav6Yr5bZrY65oQLkpuqvWQScyFortUFOypVoX0/VnQbFzKQSnyQKW7lKdr+tEdZl4eJOIeiyjtWluGYZBiTXbdCIZJshbESIVfTM+gaA9+eGFs9/+QvCTo6TtDURMmTwpmjeOoPh7orKBhw5naO4o/rEzQo1i5kvzaOQL4Si9ZmTmAHR+4/+3/o3tVx3m2J1zYAna4NbzdAwQKBgQDdrgK70iBe5t/ltoAyHa2N4AgIkhqUnCIdV1gPMrYkXrXFXxcl0VQaghEZ02o0MWyzY+kWz0QT4y5Xz5bxMtNX5PcTJf0wCRd1Jj6p9FB3ef91Hl80ffdxXeR4m7ShCZWrIhrGyrtaKgmnajmpqBVsbWCnhdUjiDMHF5qebqalYwKBgQDAASKja6V0iG0UY+qM4uMxv00wO5K7EYo9JwkOZYhBlQ+PPSF57S3kRKvME/FUsXL23nLGw1w2Y/mdypJptND+Dk5Rz/jTdehVfQjT4fncafA6o8RM5XrdtBmurOS99glI0irkNp+NbgPZZg8k0qX8tR6HmZO1yaWfZPybRiBR6QKBgEK3eEMmvm9RdNkhz/tFS1KDtmc98ZoAU5QZEXuhe4f+qR45vDG5imJf+t2W70O+DEUBMMmYn5iMqwnqhDcbYNf3JRUyPb0TP2gWlo135i/PG78X4PdfYfVQmM5jrj05MT5MCVsC8Nf2BunH4orY93mmgYxpjvgeqZzc0cAU9TqZAoGAUypquYRwB1jsfo+E0f+YzzyAj6rONK81RKW623yJF3ccZTviWzCr1xsTmvLsbnXqSRozdvq532lQftN2tci3WcQSkodVzSpeN2FQSI6yLpHIl23GIlSn8o4HLcz/y3RdsygtoeozFAyaKDl3x8hiU2KUVcHk5DHyxmb0r8EhULkCgYEA0JUulj+GoTQRv+hhy0nFUIq3ofkpUIhWfVjxTWqLJJWzp1/PU6VfEp/QAEWYeyxqUJ1Quh9GUcaJp+VWbnbynXZWbjRkfSLJmbrDOEhLHle1m5vboyw2wBsnjdDLylfmW7m4twsTy0kJ9B9FV0HteeSbgOWdMOaWuIWI/N7hNhk=";

    /*
     * 发送数据的格式,  目前为json
     *
     */

    private static String format = "json";

    /*
     * 设置字符集的编码格式 utf-8
     */

    private static String CHARSET = "utf-8";

    /*
     * 支付宝公钥,  可以替换成你们自己的
     */

    private static String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjMjXVjU4CZxGPJMtaYlWm00XgP7QfYNFhGaV1LmgDPq6kODqLGJk9SYH4599VJKIu2h90HZRAk7EGxFtXr0rooz8DZpBfEFDh/5o/+a17gR9hOYTgttHD3Mg7lwFiasOtCdWLMDj6y/MyiQZ5t7O7SGcHQww8I2A3ywMDtDt1iMjA5NQYGRYtRuSBlY2Oii8eoC5w7+qfF3gVMDzgs5FfjS1lTmmRb8Izq6GGDWCxeLrXBXYsxUzRTuRISVrXcxmXnplfpyT9zv/RB0hKeT/jxyDGtbMfrJAWfIV5dDoTK35/1tnm24GkLlFnsr886TPRBUCmfFuj6iLd2K5s4TU5wIDAQAB";

    /*
     * 支付宝签名  目前采用的是RSA2
     */

    private static String signType = "RSA2";
    /*
     * 页面跳转同步通知页面   http      ?12345464.外网可以访问的地址
     */



    public static AlipayClient getAlipayClient() {
        return new DefaultAlipayClient(serverURL,APP_ID,APP_PRIVATE_KEY,format,
                CHARSET,ALIPAY_PUBLIC_KEY,signType);
    }
}
